package com.gs.zhss.eshop.test;

import com.gs.zhss.eshop.test.testclass.Base;
import com.gs.zhss.eshop.test.testclass.Child;

/**
 * @Author: gs
 * @Date: 2024/1/2 20:21
 * @Version: v1.0.0
 * @Description: TODO
 **/
public class test {

    public static void main(String[] args) {

        Child child = new Child();
        System.out.println("child ---action");
        child.action();

        Base base = child;
        System.out.println("base ---action");
        base.action();
        System.out.println("b.s = "+base.s);
        System.out.println("c.s = "+child.s);
    }
}
